package com.googlecode.connectlet.web;

import org.eclipse.jetty.server.Server;
import org.eclipse.jetty.server.bio.SocketConnector;
import org.eclipse.jetty.servlet.ServletContextHandler;
import org.eclipse.jetty.servlets.ProxyServlet;

public class TestProxy {
	public static void main(String[] args) throws Exception {
		Server server = new Server();
		SocketConnector connector = new SocketConnector();
		connector.setPort(80);
		server.addConnector(connector);
		ServletContextHandler handler = new ServletContextHandler();
		handler.addServlet(ProxyServlet.class, "/");
		server.setHandler(handler);
		server.start();
		server.join();
	}
}